package routers

import (
	"github.com/gin-gonic/gin"
	v1 "teacher-helper/api/v1"
	"teacher-helper/middleware"
)

func InitStuGrantRouter(Router *gin.RouterGroup)  {
	StuGrantRouter := Router.Group("stu_grants").Use(middleware.JWTAuth())
	{
		StuGrantRouter.GET("/getStuGrantList", v1.GetStuGrantList)
		StuGrantRouter.POST("/addStuGrant", v1.AddOneStuGrant)
		StuGrantRouter.PUT("/updateStuGrant", v1.UpdateStuGrant)
		StuGrantRouter.DELETE("/deleteStuGrant", v1.DeleteStuGrant)
	}
}

